﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lidgren.Network;
using Microsoft.Xna.Framework;

namespace uam_fps_game.Network.MessageTypes
{
    class RemovePlayer : MessagePrototype
    {
        string name;

        public RemovePlayer(string name)
        {
            this.name = name;
        }

        public static string ParseMessage(NetIncomingMessage im)
        {
            return im.ReadString();
        }

        public override void CreateMessage(ref NetOutgoingMessage om)
        {
            om.Write(this.name);
        }
    }
}
